package com.crape.common.model;

import java.util.List;


/**
 * 用户回答类
 * 
 * @author ChenKai 2012-11-4 下午12:06:38
 */
public class Answer {

	private Long id; // ID
	private Long questionid; // 问题ID
	private Long accountid; // 回答者accountId
	private String answer; // 答案,
	private Integer accepted; // 是否被采纳：0=否，1=是
	private Long zan; // 赞
	private Long cai; // 踩
	private String createdate; // 创建时间
	private String modifydate; // 修改时间

	// =======================================
	private AccountInfo accountInfo;
	private Integer isMe; // 状态：0=NO，1=YES
	private List<AccountInfo> refAccounts;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getQuestionid() {
		return questionid;
	}

	public void setQuestionid(Long questionid) {
		this.questionid = questionid;
	}

	public Long getAccountid() {
		return accountid;
	}

	public void setAccountid(Long accountid) {
		this.accountid = accountid;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public Integer getAccepted() {
		return accepted;
	}

	public void setAccepted(Integer accepted) {
		this.accepted = accepted;
	}

	public Long getZan() {
		return zan;
	}

	public void setZan(Long zan) {
		this.zan = zan;
	}

	public Long getCai() {
		return cai;
	}

	public void setCai(Long cai) {
		this.cai = cai;
	}

	public String getCreatedate() {
		return createdate;
	}

	public void setCreatedate(String createdate) {
		this.createdate = createdate;
	}

	public String getModifydate() {
		return modifydate;
	}

	public void setModifydate(String modifydate) {
		this.modifydate = modifydate;
	}

	public AccountInfo getAccountInfo() {
		return accountInfo;
	}

	public void setAccountInfo(AccountInfo accountInfo) {
		this.accountInfo = accountInfo;
	}

	public Integer getIsMe() {
		return isMe;
	}

	public void setIsMe(Integer isMe) {
		this.isMe = isMe;
	}

	public List<AccountInfo> getRefAccounts() {
		return refAccounts;
	}

	public void setRefAccounts(List<AccountInfo> refAccounts) {
		this.refAccounts = refAccounts;
	}

}
